<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<s:generator separator=","  
                    val="'张无忌,赵敏,小昭,周芷若,殷离,张翠山,殷素素'" 
                    var="zhang"/>
<s:iterator  var="name" value="#attr.zhang" status="st">
<s:if test="#st.odd">
<div style="background-color: silver;">
${st.index +1}== ${name }==<s:property value="name"/>
</div>
</s:if>
<s:else>
${st.index +1}== ${name }==<s:property value="name"/><br/>
</s:else>
</s:iterator>


</body>
</html>